$(function () {
	//游戏名称
	window.gameName = 'treasure-bowl';

	//判断用户是否有抽奖(游戏)资格
	api.eligibleToPlay(uid, act_id, vote_token);
	//获取活动参数
	api.getGameConfig(act_id, gameName);

	//点击[开始答题]按钮
	$('#startBtn').on('click',function () {
		gameBegin();
	});

	//游戏开始
	window.gameBegin = function () {
		if (limitNum <= 0) {
			Toast('抽奖次数不够');
			return;
		};
		//次数减少一次
		limitNum--;
		$('#restNumBox span').text(limitNum);
		drawALottery();
	};
});


